#include "endPlayRecordMessageHandler.h"
#include "endPlayRecordMessage.h"
#include "opResMessage.h"
#include "endPlayRecordHandler.h"

void EndPlayRecordMessageHandler::handle(MtpMessage* message, const IPaddress& attachment)
{
	EndPlayRecordMessage* msg = (EndPlayRecordMessage*)message;
	EndPlayRecordHandler handle;
	handle(msg->getId(), msg->getDmId());
	OpResMessage resMsg(true, msg);
	resMsg.send(attachment);
}

MtpMessage* EndPlayRecordMessageHandler::decode(MtpProtocol* packet, const IPaddress& attachment)
{
	return new EndPlayRecordMessage(packet);
}
